package com.xcoder.algorithm;

public class Main {
    private static int a = 0;

    public static void main(String[] args) {
	// write your code here
        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 100; i++) {
                    a++;
                }
            }
        }).start();
        System.out.println(a);

//        for (int i = 0; i < 100; i++) {
//            new Thread(new Runnable() {
//                @Override
//                public void run() {
//                    a++;
//                }
//            }).start();
//        }
//        System.out.println(a);
    }
}
